package com.ego.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author Ares
 * @date 2020-11-20
 */
@TableName("tb_category")
@Data
public class Category {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    private Long parentId;

    // 注意isParent生成的getter和setter方法需要手动加上Is

    private Boolean isParent;
    private Integer sort;
}
